home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 18095 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  901 b 

  1. Path: vesta.ncat.edu!root
  2. From: "Ronald T. Dearing" <dearing>
  3. Newsgroups: comp.lang.c++
  4. Subject: Templates nested within a class
  5. Date: 18 Apr 1996 20:56:21 GMT
  6. Organization: a Digital Internet AlphaServer Site
  7. Message-ID: <4l6a9l$h8b@vesta.ncat.edu>
  8. NNTP-Posting-Host: alexis.ncat.edu
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 1.1N (X11; I; OSF1 V3.2 alpha)
  13. X-URL: news:comp.lang.c++
  14.  
  15. I am having aproblem with compiling some code using g++. I have
  16.  declared a template class that's based on a queue using a linked list.
  17.  
  18.  I declared several classes that I would like to place in the templates
  19.  using them in the linkedl list. I am getting an error stating that a field
  20.  in my template has an incomplete type.
  21.  
  22.  Does C++ allow you to place a template instantiation object within another
  23.  class declaration?
  24.  
  25.  Ron
  26.  dearing@ncat.edu
  27.  
  28.